package com.xxh.search.document;

import lombok.Data;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Data
@Document(indexName = "video", createIndex = true)
public class VideoDocument {

    private String id;
    private String bv;
    private long danmaku;
    private long like;
    @Field(type = FieldType.Text, searchAnalyzer = "ik_smart", analyzer = "ik_max_word")
    private String name;
    private long pubdate;
    private long reply;
    private String tags;
    private String title;
    private long view;
    @Field(type = FieldType.Text, searchAnalyzer = "ik_smart", analyzer = "ik_max_word")
    private String desc;
    private String pic;
    private String tname;
    private String face;
    private long favorite;
}
